package com.pkk.components.config;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @description:
 * @author: peikunkun
 * @create: 2018-10-29 17:54
 **/
@Configuration
@ConfigurationProperties(
    prefix = "fw.log"
)
@Data
@NoArgsConstructor
public class LoggingProperties {

  private boolean enabled = false;
  private String host = "elk";
  private int port = 9600;
  private int queueSize = 512;


  protected boolean canEqual(final Object other) {
    return other instanceof LoggingProperties;
  }

}